<?php 
if( isset( $this->paginator ) )
{
		$objGrid = $this->dataGrid( array('class'=>'table') );
		$objGrid->addColumnThead( 'Cod.', array('align'=>'center', 'width'=>'50') );
		$objGrid->addColumnThead( 'CRM', array( 'align'=>'left' ) );
		$objGrid->addColumnThead( 'Nome Unidade de Saúde', array( 'align'=>'left', 'width'=>'35%' ) );
		$objGrid->addColumnThead( '', array('align'=>'center', 'width'=>'70') );
		foreach( $this->paginator as $i => $objResult ) 
		{			
			$objGrid->addColumnTbody( $objResult->getCoMedico(), array('align'=>'center', 'class'=>'edit'));
			$objGrid->addColumnTbody( $objResult->getNuCrm() );
			$objGrid->addColumnTbody( $objResult->getObPessoa()->getNoPessoa() );		
			
			$bntExcluir = "<a href='javascript:;'><img class=\"excluir_medico\" src=\"".PATH_IMG."icons/sel.png\" border=0\" alt=\"".$objResult->getCoMedico()."\" title=\"".$objResult->getObPessoa()->getNoPessoa()."\" ></a>";
			$objGrid->addColumnTbody( "<a href='javascript:;'><img class=\"editar_medico\" src=\"".PATH_IMG."ic-editar.gif\" border=0\" title=\"EDITAR REGISTRO\" alt=\"".$objResult->getCoMedico()."\"></a> &nbsp;"
									   .$bntExcluir , array( 'align' => 'center', 'id'=>$objResult->getCoMedico()));

			$objGrid->setTr();
		}
		echo $objGrid->show();
}
?>